import Vue from 'vue'
import VueRouter from 'vue-router'


// function url(name) {
//   return () => import(`../views/${name}.vue`)
// }
// const View = url('View')
// const Date = url('date')
// const cascader = url('cascader')
// const form = url('form')
// const list = url('list')
// const page = url('page')
import index from '../index.vue'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  component: index,
  
}]

const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router